package com.hckjsec.oa.domain;

import java.math.BigDecimal;
import java.util.List;

import com.hckjsec.common.annotation.Excel;
import com.hckjsec.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 公司OA报销对象 oa_expense
 * 
 * @author cyt
 * @date 2022-01-06
 */
public class OaExpense extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 报销类型 */
    @Excel(name = "报销类型")
    private String expenseType;

    /** 报销总金额 */
    @Excel(name = "报销总金额")
    private BigDecimal expenseMoney;

    /** 报销图片 */
    @Excel(name = "报销图片")
    private String expenseImg;

    /** 事由 */
    @Excel(name = "事由")
    private String content;

    /** 状态 0 待审核,1 已审核 */
    @Excel(name = "状态 0 待审核,1 已审核")
    private String state;

    private List<OaAuditing> auditingList;
    //判断是否可以审批
    private boolean isAuditor;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setExpenseType(String expenseType) 
    {
        this.expenseType = expenseType;
    }

    public String getExpenseType() 
    {
        return expenseType;
    }
    public void setExpenseMoney(BigDecimal expenseMoney) 
    {
        this.expenseMoney = expenseMoney;
    }

    public BigDecimal getExpenseMoney() 
    {
        return expenseMoney;
    }
    public void setExpenseImg(String expenseImg) 
    {
        this.expenseImg = expenseImg;
    }

    public String getExpenseImg() 
    {
        return expenseImg;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }

    public List<OaAuditing> getAuditingList() {
        return auditingList;
    }

    public void setAuditingList(List<OaAuditing> auditingList) {
        this.auditingList = auditingList;
    }

    public boolean isAuditor() {
        return isAuditor;
    }

    public void setAuditor(boolean auditor) {
        isAuditor = auditor;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("expenseType", getExpenseType())
            .append("expenseMoney", getExpenseMoney())
            .append("expenseImg", getExpenseImg())
            .append("content", getContent())
            .append("state", getState())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
